package cn.com.connext.scrm.repository.master;

import cn.com.connext.scrm.domain.master.CodeUser;
import cn.com.connext.scrm.domain.master.Prize;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface CodeUserRepository extends JpaRepository<CodeUser,Integer>, JpaSpecificationExecutor {

    List<CodeUser> findByUnionIdAndCodeId(String unionId, String codeId);

    List<CodeUser> findByCodeId(String codeId);

    List<CodeUser> findByUnionIdAndCreatetimeLike(String unionId,Date createtime);



}
